{{ define "main" }}
<article class="post">
    <header>
        <h1 class="post-title">{{ .Title }}</h1>
        <div class="post-meta">
            {{ with .Params.author }}<span class="post-author"><i class="fa fa-user fa-fw"></i><span>{{ . }} </span></span>{{ end }}
            <i class="fa fa-calendar fa-fw"></i>
            <time datetime="{{ .Date.Format "2006/01/02" }}">
                {{ .Date.Format "2006/01/02" }}
            </time>
        </div>
    </header>

    <section class="post-content">
        {{ .Content }}
    </section>

    {{ if .Type | eq "post" }}
    <section class="post-tags" style="padding-bottom:60px;">
        <div class="post-meta tags">
            <i class="fa fa-fw fa-tag"></i>
            {{ range .Params.tags }}
                {{ $url := printf "tags/%s" ( . | urlize) }}
                <a href="{{ $url | relURL }}">{{ . }} </a>
            {{ end }}
        </div>
    </section>

    {{ partial "post-copyright" . }}
    {{ partial "forum-comments" . }}

    {{ template "_internal/disqus.html" . }}
    {{ partial "share" . }}

    <footer class="post-footer">
        {{ partial "author" . }}
    </footer>
    {{ end }}
</article>
{{ end }}
